def win():
    decrypt_layout = [
        [sg.Text('请输入密码：'), sg.InputText(password_char='*', key='password')],
        [sg.Checkbox('记住密码', key='remember')],
        [sg.Button('提交'), sg.Button('取消')]
    ]

    decrypt_window = sg.Window('输入密码', decrypt_layout, modal=True)

    # 处理密码窗口的事件
    while True:
        event, values = decrypt_window.read()

        if event in (sg.WIN_CLOSED, '取消'):
            decrypt_window.close()
            break

        if event == '提交':
            password = values['password']
            remember = values['remember']

            # if remember:
            #     # 用户选择记住密码，将密码保存到本地文件
            #     with open(password_file, 'w') as f:
            #         f.write(password)

            # 这里可以添加解密操作的代码
            # ...

            decrypt_window.close()
            break